// 个人中心相关api
import { get, post } from "../base/request";

// 隐私设置
export const postUserSetPrivate = (data) => post('/api/user/set_private', data)

// 个人主页
export const getUserHomepage = (user_id) => get('/api/user/homepage', { user_id });

// 修改个人信息
export const postUserProfile = (data) => post('/api/user/profile', data)

// 浏览记录
export const getUserHistory = (page, user_id) => get('/api/user/history', { page, user_id }, {}, { loadingText: '正在加载' });

// 我的学社
export const getUserClub = (page, user_id) => get('/api/user/club', { page, user_id }, {}, { loadingText: '正在加载' });

// 修改背景图
export const postUserEditBackground = (data) => post('/api/user/edit_background', data)

// 顾问团
export const getCounselorLists = (expertise_id) => get('/api/counselor/lists', { expertise_id });

// 学习记录-线上课程
export const getUseroOnlineCourse = (page) => get('/api/user/online_course', { page }, {}, { loadingText: '正在加载' });

// 学习记录-直播
export const getUserLive = (page) => get('/api/user/live', { page }, {}, { loadingText: '正在加载' });

// 学习记录-线下课程
export const getUseroOfflineCourse = (page) => get('/api/user/offline_course', { page }, {}, { loadingText: '正在加载' });

// 顾问团
export const postHistoryDel = (article_id) => post('/api/user/history_del', { article_id });

